package com.mt.roll.core.dal.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工艺流程工序关联表
 * </p>
 *
 * @author mt
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_process_flow_sequence")
public class ProcessFlowSequence extends Model<ProcessFlowSequence> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
      @TableId("id")
    private Long id;

    /**
     * 工艺id
     */
    @TableField("process_flow_id")
    private Long processFlowId;

    /**
     * 工序id
     */
    @TableField("work_sequence_id")
    private Long workSequenceId;

    /**
     * 删除标志，是否有效:1 可用 0不可用
     */
    @TableField("valid")
    @TableLogic
    private Integer valid;


    public static final String ID = "id";

    public static final String PROCESS_FLOW_ID = "process_flow_id";

    public static final String WORK_SEQUENCE_ID = "work_sequence_id";

    public static final String VALID = "valid";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
